package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberAddressGetList;
/**
* 获取当前用户的收货地址列表
* @author wliu
* edit tse
*/
public class MemberAddressGetListResponse extends RudderResponse{

private List<MemberAddressGetList> getList = new ArrayList<MemberAddressGetList>();


/**
* @return getList
*/
public List<MemberAddressGetList> getGetList() {
return this.getList;
}

/**
* @return getList
*/
public void setGetList(List<MemberAddressGetList> getList) {
this.getList = getList;
}
/**
methodName    GetList
type          List<MemberAddressGetList>
name          getList
defaultType   new ArrayList<MemberAddressGetList>()
*/

/**


    private static void filterFor(MemberAddressGetListProvince member) {
        if (member.getRegionId() == null) {
            member.setRegionId("");
        }
        if (member.getRegionName() == null) {
            member.setRegionName("");
        }
    }

    private static void filterFor(MemberAddressGetListCity member) {
        if (member.getRegionId() == null) {
            member.setRegionId("");
        }
        if (member.getRegionName() == null) {
            member.setRegionName("");
        }
    }

    private static void filterFor(MemberAddressGetListDistrict member) {
        if (member.getRegionId() == null) {
            member.setRegionId("");
        }
        if (member.getRegionName() == null) {
            member.setRegionName("");
        }
    }

    private static void filterFor(MemberAddressGetList member) {
        if (member.getConsigneeId() == null) {
            member.setConsigneeId("");
        }
        if (member.getConsigneeName() == null) {
            member.setConsigneeName("");
        }
        if (member.getConsigneeTel() == null) {
            member.setConsigneeTel("");
        }
        if (member.getProvince() == null) {
            member.setProvince(new MemberAddressGetListProvince());
        } else {
            filterFor(member.getProvince());
        }
        if (member.getCity() == null) {
            member.setCity(new MemberAddressGetListCity());
        } else {
            filterFor(member.getCity());
        }
        if (member.getDistrict() == null) {
            member.setDistrict(new MemberAddressGetListDistrict());
        } else {
            filterFor(member.getDistrict());
        }
        if (member.getAddress() == null) {
            member.setAddress("");
        }
        if (member.getConsigneeCard() == null) {
            member.setConsigneeCard("");
        }
        if (member.getIsDefault() == null) {
            member.setIsDefault("");
        }
    }

    public static void filter(MemberAddressGetListResponse member) {
        if (member.getGetList() == null) {
            member.setGetList(new ArrayList<MemberAddressGetList>());
        } else {
            for (MemberAddressGetList item : member.getGetList()) {
                filterFor(item);
            }
        }
    }

*/

}
